package Classroom.A0408.classDemo2;

public class Test {
    public static void main(String[] args) {
        Student stu = new Student();
        stu.name = "张三";
        Course course = new Course();
        course.cname = "java";
        Course course2 = new Course();
        course2.cname = "数据库";
//      stu.course = course;
        Course[] courses = {course,course2};
        stu.courses = courses;
        stu.say();
    }
}